From an instance of an inner class, to get to the instance of the outer class that created the inner class instance, use this@..., where ... is the name of the outer class. So, for a Bar inner class of Foo, an instance of Bar can reference the enclosing instance of Foo as this@Foo.

You can learn more about this in:
Run Edit